ElectricalSystem.Create
Description:
Creates a new MEP Electrical System element from a set of electrical components.
Creates a new MEP Electrical System element from a set of electrical components.
Overloads (2):
Create(Document,IList[ElementId],ElectricalSystemType)
public static ElectricalSystem Create(
Document document,
IList<ElementId> electComponents,
ElectricalSystemType elecSysType
)
-
documentThe Document.
-
IList<ElementId>electComponentsThe electrical components in this system.
-
elecSysTypeThe System Type of electrical system.
Return Value
nullNothingnullptr
If successful a new MEP Electrical System element within the project, otherwise null Nothing nullptr a null reference ( Nothing in Visual Basic) .
-
There should be at least one component that can create the specified circuit type
-
A non-optional argument was null
-
A value passed for an enumeration argument is not a member of that enumeration
-
None of the following disciplines is enabled: Mechanical Electrical Piping.